package extensions.packet;

import extensions.romario.packet.Packets;

public class PacketBuilder
{
    public static ServerPacket getPacket(int id) {

        switch (id) {
            case Packets.PACKET_START_GAME:
            	return new RequestStartGamePacket();
            default:
                throw new IllegalArgumentException("Packet with id '" + id + "' does not exist.");
        }
    }

}
